<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> 
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>订单详情</title>
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<link rel="stylesheet" href="../css/admin_style.css" />
<script type="text/javascript" src="../js/core/core.js"></script>
<script type="text/javascript" src="../js/pagination.js"></script>
<script language="javascript" src="../js/validate.js"></script>    
</head>
<body>
<div class="wrap">
<div class="admin_info mb10">
	<h3 class="h1"><b>提示信息</b></h3>
	<div class="legend">主要功能:订单详情</div>
</div>
<h2 class="h1"><b>订单详情</b></h2>
<input type="hidden" name="userIndent.id" value="${userIndent.id }" />
<input type="hidden" name="userIndent.state" value="3" />
<div class="admin_table mb10">
<table>
<tbody>
<tr class="tr1 vt">
    <td class="td1" style="width:80px;">订单编号：</td>
    <td class="td2" style="width:180px;">${userIndent.id}</td>
    <td class="td1" style="width:80px;">创建时间：</td>
    <td class="td2" style="width:180px;">${userIndent.createDate}</td>
    <sec:authorize ifNotGranted="ROLE_AUDIT">
    <td class="td1" style="width:80px;">创建人：</td>
    <td class="td2" style="width:180px;">${userIndent.user.userAccount}</td>
    </sec:authorize>
</tr>
<sec:authorize ifNotGranted="ROLE_AUDIT">
<tr class="tr1 vt">
    <td class="td1" style="width:80px;">创建人QQ：</td>
    <td class="td2" style="width:180px;">${userIndent.user.qq}</td>
    <td class="td1" style="width:80px;">创建人手机：</td>
    <td class="td2" style="width:180px;">${userIndent.user.phone}</td>
    <td class="td1" style="width:80px;">创建人旺旺：</td>
    <td class="td2" style="width:180px;">${userIndent.user.wangwang}</td>
</tr>
</sec:authorize>
<tr class="tr1 vt">
	<td class="td1" style="width:80px;">订单状态：</td>
	<td class="td2" style="width:180px;">
		<c:if test="${userIndent.state==0 }">
          	<span style="color:red;">未审核</span>
          </c:if>
          <c:if test="${userIndent.state==1 }">
          	<span style="color:blue;">执行中……</span>
          </c:if>
          <c:if test="${userIndent.state==2 }">
          	<span style="color:green;">已完成√</span>
          </c:if>
          <c:if test="${userIndent.state==3 }">
          	<span style="color:red;">已退款×</span>
          </c:if>
	</td>
	<td class="td1" style="width:80px;">审核时间：</td>
	<td class="td2" style="width:180px;">${userIndent.auditDate }</td>
	<td class="td1" style="width:80px;">审核人：</td>
	<td class="td2" style="width:180px;">${userIndent.auditUser.userAccount }</td>
</tr>
<tr class="tr1 vt">
	<td class="td1" style="width:80px;">开始数量：</td>
	<td class="td2" style="width:180px;">${userIndent.startNumber }</td>
	<td class="td1" style="width:80px;">目前数量：</td>
	<td class="td2" style="width:180px;">${userIndent.nowNumber }</td>
	<td class="td1" style="width:80px;">订单数量：</td>
	<td class="td2" style="width:180px;">${userIndent.number }</td>
</tr>
<tr class="tr1 vt">
	<sec:authorize ifAnyGranted="ROLE_ROOT,ROLE_ADMIN,ROLE_USER">
		<td class="td1" style="width:80px;">订单单价：</td>
		<td class="td2" style="width:180px;">${userIndent.price }</td>
		<td class="td1" style="width:80px;">订单总价：</td>
		<td class="td2" style="width:180px;">${userIndent.totalPrice }</td>
	</sec:authorize>
	<td class="td1" style="width:80px;">目标地址：</td>
	<td class="td2" style="width:180px;">
		<a href="${userIndent.targetUrl }" target="_blank">${userIndent.targetTitle }</a>
	</td>
</tr>

</table>
<c:if test="${userIndent.state==3 }">
     <h2 class="h1"><b>退款原因</b></h2>
<table>
<tr class="tr1 vt">
    <td class="td1">退款人：</td>
    <td class="td2">
    	${userIndent.refundUser.userAccount }
    </td>
    <td class="td1">退款时间：</td>
    <td class="td2">
    	${userIndent.refundDate }
    </td>
</tr>
<tr class="tr1 vt">
    <td class="td1">退款原因：</td>
    <td class="td2">
    	${userIndent.refundReason }
    </td>
</tr>
</table>     	
</c:if>

</div>

<div class="admin_table mb10" style="margin-top:20px;width:700px;">
<table width="100%" cellspacing="0" cellpadding="0" style="margin-top:-8px;">
	<tbody>
      <tr class="tr2 td_bgB">
		<td>序号</td>
        <td>订单编号</td>
		<td>目标</td>
		<td>数量</td>
		<td>时间</td>
	  </tr>
	  <c:forEach var='indentNumber' items='${indentNumberTmpList}' varStatus='u'  step='1'>
	  <tr class="tr1 vt">
          <td class="td2">${u.index+1}</td>
          <td class="td2"><b>${userIndent.id }</b></td>
		  <td class="td2"  style="height:18px;"><a href="${userIndent.targetUrl }" target="_blank">${userIndent.targetTitle }</a></td>
		  <td class="td2">${indentNumber.number }</td>
		  <td class="td2">${indentNumber.date }</td>
	  </c:forEach>
</tbody></table>
</div>

<div class="tac mb10">
	<span class="btn"><span><button type="button" onclick="history.go(-1);">返 回</button></span></span>
</div>
<div class="c"></div>
</div>

<script type="text/javascript" src="../js/global.js"></script>
<script type="text/javascript" src="../js/pw_ajax.js"></script>
<script type="text/javascript" src="../js/admin.js"></script>
<script type="text/javascript" src="../js/date.js"></script>
<script type="text/javascript" src="../js/plugin.js"></script>
</body></html>

